package com.maizhe.service;

import com.maizhe.entity.Pwd;
import com.maizhe.entity.User;
import com.maizhe.entity.vo.UserVo;
import com.maizhe.util.JsonResult;

import java.util.List;
import java.util.Map;

public interface UserService {

    JsonResult<User> login(User user);

    List<UserVo> findAll(User user);

    Integer countAll(User user);

    int saveUser(UserVo user);

    int delete(String id);

    UserVo findById(String id);

    List<Map<String,Object>> findSalesAll();

    List<Map<String,Object>> findAllManager();

    JsonResult<Integer> setPwd(Pwd pwd);
}
